package homework09;

import java.util.*;
import java.util.function.BiConsumer;

public class Test {
    public static void main(String[] args) {
       //创建Map集合代表基础班
        Map<String,String>map=new HashMap<>();
        map.put("001","李晨");
        map.put("002","范冰冰");
        System.out.println(map);
        //创建Map集合代表就业班
        Map<String,String>map1=new HashMap<>();
        map1.put("001","马云");
        map1.put("002","马化腾");
        //创建hashMap代表学科，学科下面存储的是班级名称
        HashMap<String,Map<String,String>> hashMap=new HashMap<>();
        hashMap.put("基础班",map);
        hashMap.put("就业班",map1);

        hashMap.forEach(( s,  stringStringMap)-> {
                System.out.println(s+":");
                map.forEach((key,value)-> System.out.println(key+value));
        });
    }
}
